package net.asfun.jvalog.service;

import java.util.ArrayList;
import java.util.List;

import net.asfun.jvalog.resource.PhaseDao;
import net.asfun.jvalog.vo.Archive;
import net.asfun.jvalog.entity.Phase;


public class ArchiveService {

	
	public static List<Archive> listYearMonth() {
		List<Archive> archs = new ArrayList<Archive>();
		for ( Phase phase : PhaseDao.listAll()) {
			archs.add(new Archive(phase));
		}
		return archs;
	}

}
